package cn.jiyun.service;

import cn.jiyun.entity.Course;
import cn.jiyun.entity.CourseDTO;
import cn.jiyun.entity.CourseVO;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author weiyuanhang
 * @data: 2023/8/23 002316:40
 * @Package cn.jiyun.service
 * @email 3185757326@qq.com
 */
@FeignClient(value = "day07course")
public interface CourseFigenService {
    @GetMapping("/course/findCountId")
    public Integer findCountId();
    @GetMapping("/course/findCourse")
    public List<Course> findCourse();
    //排序最新课程·1
    @GetMapping("/course/findLastCourse")
    public List<Course> findLastCourse();

    @RequestMapping("/course/findAll")
    public PageInfo<CourseVO> CourseFindAll(@RequestBody CourseDTO courseDTO);
    @GetMapping("/course/findHottestCourse")
    public List<Course> findHottestCourse();
}
